package game.editer.view;

import js.Browser;
import js.html.AnchorElement;

class ExportProjectView {
    public function new() {
        // 创建虚拟链接元素
        var a = Browser.document.createAnchorElement();
        a.href = "data:application/octet-stream," + "项目导出内容"; // 这里替换为实际要导出的数据
        a.download = "RoleProject.abproj"; // 设置默认文件名
        a.style.display = "none";
        
        Browser.document.body.appendChild(a);
        a.click();
        Browser.document.body.removeChild(a);
    }
}
